package com.leolian.spring01.ioc.injection.service.impl;

import com.leolian.spring01.ioc.injection.dao.InjectionDao;
import com.leolian.spring01.ioc.injection.service.InjectionService;

public class InjectionServiceImpl implements InjectionService {
	
	private InjectionDao dao;
	
	/*public void setDao(InjectionDao dao) {
		this.dao = dao;
	}*/
	
	public InjectionServiceImpl(InjectionDao dao) {
		this.dao = dao;
	}

	public void save(String param) {
		System.out.println("Service : "+param);
		param = param + this.hashCode();
		dao.save(param);
	}

}
